package org.grayrabbit.cms.entity;

// Generated 2012-1-5 15:59:28 by Hibernate Tools 3.3.0.GA

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * CmsPublishConfig generated by hbm2java
 */
@Entity
@Table(name = "CMS_PUBLISH_CONFIG")
public class PublishConfig implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String publishId;
	private Boolean isMore;
	private String publishObject;
	private String objectId;
	private Date publishTime;
	private Long publishInterval;
	private Boolean isRun;
	private Boolean isEnabled;
	private String createLoginName;
	private String createRealName;
	private Date createTime;
	private String updateLoginName;
	private String updateRealName;
	private Date updateTime;
	private Set<PublishTask> publishTasks = new HashSet<PublishTask>(0);

	 

	@Id
	@Column(name = "PUBLISH_ID", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator = "paymentableGenerator")       
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid") 
	public String getPublishId() {
		return this.publishId;
	}

	public void setPublishId(String publishId) {
		this.publishId = publishId;
	}

	@Column(name = "IS_MORE", precision = 1, scale = 0)
	public Boolean getIsMore() {
		return this.isMore;
	}

	public void setIsMore(Boolean isMore) {
		this.isMore = isMore;
	}

	@Column(name = "PUBLISH_OBJECT", length = 32)
	public String getPublishObject() {
		return this.publishObject;
	}

	public void setPublishObject(String publishObject) {
		this.publishObject = publishObject;
	}

	@Column(name = "OBJECT_ID", length = 32)
	public String getObjectId() {
		return this.objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "PUBLISH_TIME", length = 7)
	public Date getPublishTime() {
		return this.publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	@Column(name = "PUBLISH_INTERVAL", precision = 11, scale = 0)
	public Long getPublishInterval() {
		return this.publishInterval;
	}

	public void setPublishInterval(Long publishInterval) {
		this.publishInterval = publishInterval;
	}

	@Column(name = "IS_RUN", precision = 1, scale = 0)
	public Boolean getIsRun() {
		return this.isRun;
	}

	public void setIsRun(Boolean isRun) {
		this.isRun = isRun;
	}

	@Column(name = "IS_ENABLED", precision = 1, scale = 0)
	public Boolean getIsEnabled() {
		return this.isEnabled;
	}

	public void setIsEnabled(Boolean isEnabled) {
		this.isEnabled = isEnabled;
	}

	@Column(name = "CREATE_LOGIN_NAME", length = 64)
	public String getCreateLoginName() {
		return this.createLoginName;
	}

	public void setCreateLoginName(String createLoginName) {
		this.createLoginName = createLoginName;
	}

	@Column(name = "CREATE_REAL_NAME", length = 64)
	public String getCreateRealName() {
		return this.createRealName;
	}

	public void setCreateRealName(String createRealName) {
		this.createRealName = createRealName;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 7)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "UPDATE_LOGIN_NAME", length = 64)
	public String getUpdateLoginName() {
		return this.updateLoginName;
	}

	public void setUpdateLoginName(String updateLoginName) {
		this.updateLoginName = updateLoginName;
	}

	@Column(name = "UPDATE_REAL_NAME", length = 64)
	public String getUpdateRealName() {
		return this.updateRealName;
	}

	public void setUpdateRealName(String updateRealName) {
		this.updateRealName = updateRealName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", length = 7)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "publishConfig")
	public Set<PublishTask> getPublishTasks() {
		return this.publishTasks;
	}

	public void setPublishTasks(Set<PublishTask> publishTasks) {
		this.publishTasks = publishTasks;
	}

}
